	<div class="portlet">
		 <table style="width:100%">
			<tr>
				<td>
					<div class="portlet-title" style="background-color:#ffffff">
						<form action="javascript:;" class="alert alert-success alert-borderless" style="background-color: #EEF4F5;">
							<div class="input-group">
							<span class="input-group-btn">
								<button type="button" class="btn green-haze" style="background-color: #3E97E4;" ng-click="publishMakeBillDetailTable.query();">
								搜索 &nbsp; <i class="fa fa-search"></i>
								</button>
								</span>
								<div class="input-cont">
									<input type="text" placeholder="单据号..." class="form-control" ng-model="publishMakeBillDetailQuery.billNo"/>
								</div>
							</div>
						</form>
					</div>
				</td>
			</tr>
		</table> 
		<div class="col-md-2" style="text-align: right;margin-top: -8%;margin-left: 94%;">
			<div class="btn-group btn-theme-panel">
				<a href="javascript:;" class="btn dropdown-toggle"  ng-click="publishMakeBillDetailTable.callBack();">
				<i class="icon-arrow-left" style="font-size: 45px;"></i>
				</a>
			</div>
		</div>
		
		<div class="portlet light" ng-repeat="data in dataArray">
			<div class="portlet-title" style="background-color:#ffffff">
				<div class="caption">
					<i class="fa fa-cogs font-red-sunglo"></i>
					<span class="caption-subject font-red-sunglo bold uppercase">{{data.billNo}}</span>
				</div>
			</div>
			<div class="portlet-body" ng-if="data.billType ==1">
				<div class="table-responsive">
					<table class="table">
					<thead>
					<tr >
						<th>
							 #
						</th>
						<th>
							资源编号
						</th>
						<th>
							车牌
						</th>
						<th>
							自编号
						</th>
						<th>
							线路
						</th>
						<th>
							所属公司
						</th>
						<th>
							开始日期
						</th>
						<th>
							截止日期
						</th>
						<th>
							完工状态
						</th>
						<th>
							操作
						</th>
					</tr>
					</thead>
					<tbody>
					<tr ng-repeat="makeBillDetail in data.makeBillDetailsArray">
						<td>
							 {{$index + 1}}
						</td>
						<td>
							{{makeBillDetail.resourceCode}}
						</td>
						<td>
							{{makeBillDetail.plateNo}}
						</td>
						<td>
							{{makeBillDetail.vehicleNo}}
						</td>
						
						<td>
							{{makeBillDetail.lineNo}}
						</td>
						<td>
							{{makeBillDetail.companyName}}
						</td>
						<td>
							{{makeBillDetail.publishTime}}
						</td><td>
							{{makeBillDetail.publishOffTime}}
						</td>
						<td>
							<!-- <div class="btn-group">
								<a class="btn default red-stripe btn-sm"  ng-if="makeBillDetail.makeBillDetailStatus==1">
								未完工
								</a>
								<a class="btn default green-stripe btn-sm"  ng-if="makeBillDetail.makeBillDetailStatus==2">
								已完工
								</a>
							</div> -->
							<div class="btn-group">
								<span  ng-if="makeBillDetail.makeBillDetailStatus==1">
								未完工
								</span>
								<span  ng-if="makeBillDetail.makeBillDetailStatus==2">
								已完工
								</span>
							</div>
						</td>
						<td>
							<div class="btn-group" ng-if="makeBillDetail.makeBillDetailStatus==1">
								<a class="btn red-intense btn-sm"  ng-click="publishMakeBillDetailTable.complete(makeBillDetail);">
								<i class="fa fa-edit"></i>&nbsp;上传完工照
								</a>
							</div>
							<div class="btn-group" ng-if="makeBillDetail.makeBillDetailStatus==2">
								<a class="btn btn-success btn-sm"  style="background-color: #3E97E4;" ng-click="publishMakeBillDetailTable.view(makeBillDetail);">
								<i class="fa fa-check-square"></i>&nbsp;查看
								</a>
							</div>
						</td>
					</tr>
					</tbody>
					</table>
					<!-- <div id="page_bar" style="position: relative; margin-top: 5px; margin-bottom: 25px;"></div> -->
				</div>
			</div>
			<div class="portlet-body" ng-if="data.billType ==2">
				<div class="table-responsive">
					<table class="table">
					<thead>
					<tr >
						<th>
							 #
						</th>
						<th>
							资源编号
						</th>
						<th>
							站点名称
						</th>
						<th>
							道路名称
						</th>
						<th>
							开始日期
						</th>
						<th>
							截止日期
						</th>
						<th>
							完工状态
						</th>
						<th>
							操作
						</th>
					</tr>
					</thead>
					<tbody>
					<tr ng-repeat="makeBillDetail in data.makeBillDetailsArray">
						<td>
							 {{$index + 1}}
						</td>
						<td>
							{{makeBillDetail.resourceCode}}
						</td>
						<td>
							{{makeBillDetail.stopName}}
						</td>
						<td>
							{{makeBillDetail.roadName}}
						</td>
						<td>
							{{makeBillDetail.publishTime}}
						</td><td>
							{{makeBillDetail.publishOffTime}}
						</td>
						<td>
						<!-- 	<div class="btn-group">
								<a class="btn default red-stripe btn-sm"  ng-if="makeBillDetail.makeBillDetailStatus==1">
								未完工
								</a>
								<a class="btn default green-stripe btn-sm"  ng-if="makeBillDetail.makeBillDetailStatus==2">
								已完工
								</a>
							</div> -->
								<span  ng-if="makeBillDetail.makeBillDetailStatus==1">
								未完工
								</span>
								<span  ng-if="makeBillDetail.makeBillDetailStatus==2">
								已完工
								</span>
						</td>
						<td>
							<div class="btn-group" ng-if="makeBillDetail.makeBillDetailStatus==1">
								<a class="btn red-intense btn-sm"  ng-click="publishMakeBillDetailTable.complete(makeBillDetail);">
								<i class="fa fa-edit"></i>&nbsp;上传完工照
								</a>
							</div>
							<div class="btn-group" ng-if="makeBillDetail.makeBillDetailStatus==2">
								<a class="btn btn-success btn-sm" style="background-color: #3E97E4;" ng-click="publishMakeBillDetailTable.view(makeBillDetail);">
								<i class="fa fa-check-square"></i>&nbsp;查看
								</a>
							</div>
						</td>
					</tr>
					</tbody>
					</table>
				</div>
			</div>
		</div>
</div>

<div style="text-align: center;" ng-if="publishBillStatus==3">
	<a class="btn btn-success title-action"  ng-click="publishMakeBillDetailTable.finishAll();"
		style="width:140px;height: 45px;margin-top: -13px;margin-right: 7px;background-color:#3E97E4;font-size:17px;"
		tabindex="0">
        <i class="glyphicon glyphicon-ok"></i> 全部完工
     </a>
</div>

  <div ed-modal="completeModal" data-options="width:'600px',static:true,title: '完工明细',
    icon: 'glyphicon glyphicon-briefcase'" >
    <div class="form" style="height: 500px;overflow-y: auto;">
        <div class="portlet-body" style="width: 99%;">
            <form action="#" class="form-horizontal w5c-form" w5c-form-validate novalidate
                  name="completeModalForm">
                <div class="form-body">
                    <div class="form-group">
                        <label class="col-md-4 control-label">完工时间</label>
                        <div class="col-md-4">
                            <div class="input-icon">
                                <i class="fa fa-calendar"></i>
                                <input type="text" class="form-control" name="completeTime" ed-time-picker style="width: 200px;"
                                       ng-model="completeBill.completeTime" placeholder="开始时间" required />
                            </div>
                        </div>
                     </div>
                      <div class="form-group">
                        <label class="col-md-4 control-label">备注</label>
                        <div class="col-md-4">
                            <div class="input-icon">
                                <i class="glyphicon glyphicon-folder-close"></i>
                                <input type="text" class="form-control" name="makeBillDetailRemark" style="width: 200px;"
                                       ng-model="completeBill.makeBillDetailRemark" placeholder="备注"/>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-4 control-label">完工照</label>
                        <div class="col-md-4">
                            <div ed-uploader data-options="text:' 上传完工照'" class="ng-uploader" ng-model="completeBill.img"></div>
                        </div>
                    </div>
                     <div class="form-group">
                       <div style="width:100%;height:30px;background-color:#EEF4F5;padding:5px;">
							<span style="font-weight: bold;margin-left: 5%;color: #6F6060;border-left:3px solid #3E97E4">&nbsp;&nbsp;完工照 </span> 
						</div>
                    </div>
                    <div class="col-md-9" style="margin-left:17%;" ng-if="completeBill.img == null">	
					 	<div style="font-size:30px;height: 220px;color:#E8E0E0;border: 3px dotted #E8E0E0;"><div style="text-align:center; width:200px;margin:35px auto;">暂无照片</div>
							</div>
					</div>
                    <div class="col-md-9" style="margin-left:17%;" ng-if="completeBill.img != null">	
					 	<div class="mix-grid">
		                    <div class="col-md-12 col-sm-12 mix " style="display: block;opacity: 1;">
		                    	<div class="mix-inner">
									<img class="img-responsive" ng-src="{{nginxPath+completeBill.img.path}}" alt="" style="width:370px;height:240px">
									<div class="mix-details" style="height:50%">
											<span>{{completeBill.img.name}}</span>
												<a class="mix-link" ng-click="fileModal.deleteFile(completeBill.img);">
													<i class="fa fa-close" ></i>
												</a>
											<a class="mix-preview fancybox-button" ng-href="{{nginxPath+completeBill.img.path}}" title="{{completeBill.img.name}}" data-rel="fancybox-button">
												<i class="fa fa-search"></i>
											</a>
										</div>
									</div>
								</div>
						</div> 
					</div>
                </div>
            </form>
        </div>
    </div>
</div>

<div ed-modal="completeViewModal" data-options="width:'600px',static:true,title: '完工明细',
    icon: 'glyphicon glyphicon-briefcase',defaultButton : false" >
    <div class="form" style="height: 500px;overflow-y: auto;">
        <div class="portlet-body" style="width: 99%">
            <form action="#" class="form-horizontal w5c-form" w5c-form-validate novalidate
                  name="completeModalForm">
                <div class="form-body">
                    <div class="form-group">
                        <label class="col-md-4 control-label">完工时间</label>
                        <div class="col-md-4">
                            <div class="input-icon">
                                <i class="fa fa-calendar"></i>
                                <input  type="text" class="form-control" name="completeTime" ed-time-picker style="width: 200px;"
                                       ng-model="completeBill.completeTime" placeholder="开始时间" disabled />
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-4 control-label">备注</label>
                       <div class="col-md-4">
                             <div class="input-icon">
                                <i class="glyphicon glyphicon-folder-close"></i>
                                <input type="text" class="form-control" name="makeBillDetailRemark" style="width: 200px;"
                                       ng-model="completeBill.makeBillDetailRemark" placeholder="备注" disabled/>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                       <div style="width:100%;height:30px;background-color:#EEF4F5;padding:5px;">
							<span style="font-weight: bold;margin-left: 5%;color: #6F6060;border-left:3px solid #3E97E4">&nbsp;&nbsp;完工照 </span> 
						</div>
                    </div>
                    <div class="col-md-9" style="margin-left:15%;">	
					 	<div class="mix-grid" ng-repeat="img in completeBill.imgs">
		                    <div class="col-md-12 col-sm-12 mix " style="display: block;opacity: 1;">
		                    	<div class="mix-inner">
									<img class="img-responsive" ng-src="{{nginxPath+img.path}}" alt="" style="width:370px;height:240px">
									<div class="mix-details" style="height:40%">
											<span>{{img.name}}</span>
												<a class="mix-link" ng-click="fileModal.downloadFile(img.path);">
													<i class="fa fa-download" ></i>
												</a>
											<a class="mix-preview fancybox-button" ng-href="{{nginxPath+img.path}}" title="{{img.name}}" data-rel="fancybox-button">
												<i class="fa fa-search"></i>
											</a>
										</div>
									</div>
								</div>
							</div> 
					</div>
                </div>
            </form>
        </div>
    </div>
</div>
